projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
413faa5
)
parasite: Make child properties insensitive when empty
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 3 May 2014 19:57:16 +0000
(15:57 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 11 May 2014 02:04:11 +0000
(22:04 -0400)
When the selected object is not a widget, make the child property
list insensitive.
modules/other/parasite/prop-list.c
patch
|
blob
|
history
diff --git
a/modules/other/parasite/prop-list.c
b/modules/other/parasite/prop-list.c
index 8cedde329bf109b8e093df360473235319b93f5a..8d042f14ceb27c8012fc3050ca622df9911a0573 100644
(file)
--- a/
modules/other/parasite/prop-list.c
+++ b/
modules/other/parasite/prop-list.c
@@
-362,6
+362,7
@@
parasite_proplist_set_object (ParasitePropList* pl, GObject *object)
g_hash_table_remove_all (pl->priv->prop_iters);
gtk_list_store_clear (pl->priv->model);
+ gtk_widget_set_sensitive (GTK_WIDGET (pl), FALSE);
if (pl->priv->child_properties)
{
@@
-379,6
+380,8
@@
parasite_proplist_set_object (ParasitePropList* pl, GObject *object)
else
props = g_object_class_list_properties (G_OBJECT_GET_CLASS (object), &num_properties);
+ gtk_widget_set_sensitive (GTK_WIDGET (pl), TRUE);
+
for (i = 0; i < num_properties; i++)
{
GParamSpec *prop = props[i];